package xyz.eden.gateway.springcloud.admin.component.route.nacos;

import com.fasterxml.jackson.core.type.TypeReference;
import org.springframework.cloud.gateway.route.RouteDefinition;
import xyz.eden.gateway.springcloud.admin.component.route.util.YamlUtil;

import java.util.List;

public class NacosTool {

    public static List<RouteDefinition> builderRouteDefinition(String configInfo) {
        return YamlUtil.deserializeObject(configInfo, new TypeReference<List<RouteDefinition>>() {
        });


    }
}
